{% extends "menu.html" %}
{% block content %}

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">



            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>广告参数配置</h2>

                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br />
                    <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left" method="post" enctype="multipart/form-data">
                        {% csrf_token %}
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> 离线奖励<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        {% if guanggao_par.offlinereward == "share" %}
                          <span></span><input type="radio" class="flat" name="offlinereward"  value="share" checked=""  />分享
                          <span></span><input type="radio" class="flat" name="offlinereward" value="ad" />看视频
                          <span> </span><input type="radio" class="flat" name="offlinereward" value="diamond" />钻石购买
                          <span style="color: red">***上次选择{{ guanggao_par.offlinereward }}</span>
                        {% elif guanggao_par.offlinereward == "ad" %}
                          <span></span><input type="radio" class="flat" name="offlinereward"  value="share"  />分享
                          <span></span><input type="radio" class="flat" name="offlinereward" value="ad" checked=""  />看视频
                          <span> </span><input type="radio" class="flat" name="offlinereward" value="diamond" />钻石购买
                          <span style="color: red">***上次选择{{ guanggao_par.offlinereward }}</span>
                        {% elif guanggao_par.offlinereward == "diamond" %}
                          <span></span><input type="radio" class="flat" name="offlinereward"  value="share"  />分享
                          <span></span><input type="radio" class="flat" name="offlinereward" value="ad"   />看视频
                          <span> </span><input type="radio" class="flat" name="offlinereward" value="diamond" checked="" />钻石购买
                          <span style="color: red">***上次选择{{ guanggao_par.offlinereward }}</span>
                        {% elif guanggao_par.offlinereward == 0 %}
                          <span></span><input type="radio" class="flat" name="offlinereward"  value="share" checked=""  />分享
                          <span></span><input type="radio" class="flat" name="offlinereward" value="ad"   />看视频
                          <span> </span><input type="radio" class="flat" name="offlinereward" value="diamond" />钻石购买
                        {% endif %}
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> 离线奖励钻石购买消耗<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input name="offlinerewardDiamond" value={{ guanggao_par.offlinerewardDiamond }} placeholder="20">
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> 随机宝箱<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        {% if guanggao_par.minerbox == "share" %}
                          <span></span><input type="radio" class="flat" name="minerbox"  value="share" checked=""  />分享
                          <span></span><input type="radio" class="flat" name="minerbox" value="ad" />看视频
                          <span></span><input type="radio" class="flat" name="minerbox" value="free" />直接获取奖励
                          <span style="color: red">***上次选择{{ guanggao_par.minerbox }}</span>
                        {% elif guanggao_par.minerbox == "ad" %}
                        <span></span><input type="radio" class="flat" name="minerbox"  value="share" />分享
                          <span></span><input type="radio" class="flat" name="minerbox" value="ad" checked=""/>看视频
                          <span></span><input type="radio" class="flat" name="minerbox" value="free" />直接获取奖励
                          <span style="color: red">***上次选择{{ guanggao_par.minerbox }}</span>
                        {% elif guanggao_par.minerbox == "free" %}
                        <span></span><input type="radio" class="flat" name="minerbox"  value="share" />分享
                          <span></span><input type="radio" class="flat" name="minerbox" value="ad" />看视频
                          <span></span><input type="radio" class="flat" name="minerbox" value="free" checked=""/>直接获取奖励
                          <span style="color: red">***上次选择{{ guanggao_par.minerbox }}</span>
                        {% elif guanggao_par.minerbox == "0" %}
                          <span></span><input type="radio" class="flat" name="minerbox"  value="share" checked=""/>分享
                          <span></span><input type="radio" class="flat" name="minerbox" value="ad" />看视频
                          <span></span><input type="radio" class="flat" name="minerbox" value="free" />直接获取奖励
                        {% endif %}
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> 金币不足购买窗口前两次免费开关<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        {% if guanggao_par.goldchangefree2 == "true" %}
                          <span></span><input type="radio" class="flat" name="goldchangefree2"  value="true" checked="" />打开
                          <span></span><input type="radio" class="flat" name="goldchangefree2" value="false" />关闭
                          <span style="color: red">***上次选择{{ guanggao_par.goldchangefree2 }}</span>
                        {% elif guanggao_par.goldchangefree2 == "false" %}
                          <span></span><input type="radio" class="flat" name="goldchangefree2"  value="true"  />打开
                          <span></span><input type="radio" class="flat" name="goldchangefree2" value="false" checked="" />关闭
                          <span style="color: red">***上次选择{{ guanggao_par.goldchangefree2 }}</span>
                        {% elif guanggao_par.goldchangefree2 == 0 %}
                          <span></span><input type="radio" class="flat" name="goldchangefree2"  value="true"  checked="" />打开
                          <span></span><input type="radio" class="flat" name="goldchangefree2" value="false"  />关闭
                        {% endif %}

                        </div>
                       </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> 金币不足购买窗口免费获取按钮功能<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        {% if guanggao_par.goldchange == "share" %}
                          <span></span><input type="radio" class="flat" name="goldchange"  value="share" checked=""  />分享
                          <span></span><input type="radio" class="flat" name="goldchange" value="ad" />看视频
                          <span style="color: red">***上次选择{{ guanggao_par.goldchange }}</span>
                        {% elif guanggao_par.goldchange == "ad" %}
                        <span></span><input type="radio" class="flat" name="goldchange"  value="share"   />分享
                          <span></span><input type="radio" class="flat" name="goldchange" value="ad" checked="" />看视频
                          <span style="color: red">***上次选择{{ guanggao_par.goldchange }}</span>
                        {% elif guanggao_par.goldchange == 0 %}
                         <span></span><input type="radio" class="flat" name="goldchange"  value="share" checked=""  />分享
                          <span></span><input type="radio" class="flat" name="goldchange" value="ad" />看视频
                        {% endif %}


                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> 物品商店免费获取的功能<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        {% if guanggao_par.itemshop == "share" %}

                          <span></span><input type="radio" class="flat" name="itemshop"  value="share" checked=""  />分享
                          <span> </span><input type="radio" class="flat" name="itemshop" value="ad" />看视频
                          <span style="color: red">***上次选择{{ guanggao_par.itemshop }}</span>
                        {% elif guanggao_par.itemshop == "ad" %}
                        <span></span><input type="radio" class="flat" name="itemshop"  value="share"  />分享
                          <span> </span><input type="radio" class="flat" name="itemshop" value="ad" checked=""  />看视频
                          <span style="color: red">***上次选择{{ guanggao_par.itemshop }}</span>
                        {% else %}
                          <span></span><input type="radio" class="flat" name="itemshop"  value="share" checked=""  />分享
                          <span> </span><input type="radio" class="flat" name="itemshop" value="ad" />看视频
                        {% endif %}


                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> autopick<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        {% if guanggao_par.autopick == "share" %}
                          <span> </span><input type="radio"  class="flat" name="autopick"  value="share" checked=""  />分享
                          <span> </span><input type="radio" class="flat" name="autopick" value="ad" />看视频
                          <span style="color: red">***上次选择{{ guanggao_par.autopick }}</span>
                        {%elif guanggao_par.autopick == "ad" %}
                        <span> </span><input type="radio"  class="flat" name="autopick"  value="share"   />分享
                          <span> </span><input type="radio" class="flat" name="autopick" value="ad" checked="" />看视频
                          <span style="color: red">***上次选择{{ guanggao_par.autopick }}</span>
                        {% else %}
                        <span> </span><input type="radio"  class="flat" name="autopick"  value="share"  checked="" />分享
                          <span> </span><input type="radio" class="flat" name="autopick" value="ad"  />看视频
                        {% endif %}

                        </div>
                      </div>




                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                          <button class="btn btn-primary" type="button">Cancel</button>
						  <button class="btn btn-primary" type="reset">Reset</button>
                          <button type="submit" class="btn btn-success">Submit</button>
                        </div>
                      </div>

                    </form>
                  </div>
                </div>

              </div>
            </div>


          </div>
        </div>

{% endblock %}